import { createStore } from 'vuex'
interface Data {
	isReady: Boolean,
}

export interface State {
	data: Data
}

const state: State = {
	data: {
		isReady: false
	}
}


// 创建一个新的 store 实例
const store = createStore({
	state: state,
	mutations: {
		setIsReady(state) {
			state.data.isReady = true
		}
	}
})

export default store